package com.guo.book1.dependencyinversion;

import lombok.Builder;

public class Tom {

    public Tom() {

    }

    ICourse course;

    public Tom(ICourse course) {
        this.course = course;
    }

    public void study() {
        course.study();
    }

    public void study(ICourse course) {
        course.study();
    }
}
